import {rand} from './rand';

//封装函数用来得出结果值
export function percent(p){
    let num = rand(1, 100);
    //判断结果
    if(num <= p){
        return true;
    }else{
        return false;
    }
}